import { reactive, ref } from "vue";

export default function InitHook() {
  //表单数据
  const formState = reactive({
    nodeTime: undefined, //	节点时间
    content: [], //	轨迹信息
    waybillNums: undefined //运单号
  });

  //表格数据
  const tableData = reactive([]);

  //等待状态
  const loading = ref<boolean>(false);

  //表单ref
  const formDataRef = ref(null);
  return {
    tableData,
    formState,
    loading,
    formDataRef
  };
}
